package com.ruoyi.order.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.order.domain.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;

/**
 * 背调订单Service接口
 *
 * @author ruoyi
 * @date 2024-06-24
 */
public interface ISysOrderOneService
{
    /**
     * 查询背调订单
     *
     * @param id 背调订单主键
     * @return 背调订单
     */
    public SysOrderOne selectSysOrderOneById(Long id);

    /**
     * 查询背调订单列表
     *
     * @param sysOrderOne 背调订单
     * @return 背调订单集合
     */
    public List<SysOrderOne> selectSysOrderOneList(SysOrderOne sysOrderOne);

    /**
     * 新增背调订单
     *
     * @param sysOrderOne 背调订单
     * @return 结果
     */
    public int insertSysOrderOne(SysOrderOne sysOrderOne);

    /**
     * 修改背调订单
     *
     * @param sysOrderOne 背调订单
     * @return 结果
     */
    public int updateSysOrderOne(SysOrderOne sysOrderOne);

    /**
     * 批量删除背调订单
     *
     * @param ids 需要删除的背调订单主键集合
     * @return 结果
     */
    public int deleteSysOrderOneByIds(Long[] ids);

    /**
     * 删除背调订单信息
     *
     * @param id 背调订单主键
     * @return 结果
     */
    public int deleteSysOrderOneById(Long id);

    OrderOneVO submitOneOrder(OrderDTO orderDTO);

    void payOrders(OrderOneVO orderOneVO);

    OrderOneVO submitMoreOrder(OrderDTO orderDTO);

    void empowerUser(Long orderId, String msg, HttpServletRequest request, HttpServletResponse response);

    AjaxResult getUserInfo(Long orderId);

    AjaxResult sendAgain(Long orderId);
    List<SysOrderOne> getSysOrderOneList(SysOrderOne sysOrderOne, Date beginCreateTime, Date endCreateTime);

    List<SysOrderSurveyVO> listOrderReports(Long orderId,Long type);

    List<SysOrderOneVO> getSysOrderOneVOList(SysOrderOneVO sysOrderOneVO);

    List<SysOrderOneVO> getSysOrderOneVOListOther(SysOrderOneVO sysOrderOneVO, Long deptId);

    String getUserNameById(Long userId);
}
